package com.vim.common.thread;

import com.vim.modules.web.model.SysLoginLog;
import com.vim.modules.web.service.SysLoginLogService;

/**
 * 线程:系统用户登录日志
 */
public class SysLoginLogThread extends Thread{

    private SysLoginLog sysLoginLog;

    private SysLoginLogService sysLoginLogService;

    public SysLoginLogThread(SysLoginLogService sysLoginLogService, SysLoginLog sysLoginLog){
        this.sysLoginLog = sysLoginLog;
        this.sysLoginLogService = sysLoginLogService;
    }

    @Override
    public void run() {
        if(null != sysLoginLog){
            sysLoginLogService.save(sysLoginLog);
        }
    }
}
